fix null pointer exception in missing date
location constructor to accept null coordinates