A motorcyclist was stopped by police for using a phone torch as a replacement for their broken headlight.