TRUNK-3829: Code improvements for calendar.js

According to discusion at https://github.com/bhashitha/openmrs-core/commit/d448896bf02d8cded261fe0ce522d5ec97d23683#commitcomment-3265342 with Kayiwa, remove the unnecessary if condition.