Fix calendar.js error when elements (ShowAll/HideAll) not present (#782)