Section 7B. In determining the right of any inspector of the division or the department of fire services' division of inspection performing police service, or his legal representatives, to receive compensation under any provision of law on account of injuries or death suffered by such inspector while engaged in the actual performance of police service in the course of his duties, such inspector shall be deemed to be so engaged while traveling on public ways from his home to his station of duty and from such station to his home.