Fixed potential exception when Calendar module is disabled