fixed issue with a string of "0" still triggering an error if the field is required.
fixed issue with map_query_records when the $query object returns an empty data set