[[ Bug 11675 ]] Fix infinite loop when skipping over comment in PBM file