handle the case where a filename is None when calling parser_for_filename