Fix error where MySQL query would error if no XY dates have been set.