[TASK] TYPO3 Coding Guidelines - This function must always have a return value

Change-Id: I56decac06d4555f4a7ee2e22d0ec12e5c346ddde
Resolves: #54687
Reviewed-on: https://review.typo3.org/26612
Reviewed-by: Alex Kellner
Tested-by: Alex Kellner