Check that start / end dates are not instances of WP_Error to ensure empty dates can be passed. #1709