[BUGFIX] Check for result in date menu to avoid PHP errors

Change-Id: I124ed06ff0c6391e53f09ae8a7f4cead7919389d
Resolves: #558229
Releases: master,4x
Reviewed-on: https://review.typo3.org/27538
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer