[BUGFIX] "else if" in GeneralUtility breaks the build

Resolves: #55822
Releases: 6.2
Change-Id: I32dd5119a3580df3990997d1c812f33c062c39ba
Reviewed-on: https://review.typo3.org/27521
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters