file_helper - fix undefined variable errors

although the errors are caused by user not sending appropriate values
through to the functions, there's no reason for the ugly errors as a
result.