Fixed crash in Date search button from Null PointExc