[BUGFIX] Fix some warnings

Change-Id: I6c8b206832671c4f7e5b24bff19c35f11e2b120d
Reviewed-on: https://review.typo3.org/24909
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer