some error checks for FPF to see if the preg_replaces failed, fixes #461