Make sure the isPeriodicCommit check works gracefully for invalid queries