(PUP-1349) - Test for nil file path and output different error if path is undef

Tested for nil on path assuming type object.  Tested for undefined variable and output the a different error.