Fix two PHP warning issues

Two minor issues in category repository and array key exist view helper
could lead to PHP warnings in TYPO3 error log