Fix calendar crash on open when empty