Fix error when all day event is hidden

Signed-off-by: Jan Schneider <jan@horde.org>
Bug: 13433