vf_fps: add more error checks.