Merge pull request #26 from kazoompa/null-ptr-exp

null-ptr-exp - made sure ageMin and ageMax are not null before assigning...
null-ptr-exp - is start or end dates are null, convertTo only compares IDs