Cheap check for nan with datetime64s of any frequency