Fixed a bug with get_by_fields() didn't handle null values