Fixed error in isClosedAllDay().