[BUGFIX] fixing module output on empty pages

Fixing the message output on pages where no session data
are available

Change-Id: If2ebb1d2aa923b6142182aeed98548e69cedba25
Reviewed-on: https://review.typo3.org/25143
Reviewed-by: Sebastian Fischer
Tested-by: Sebastian Fischer