[BUGFIX] Typecast returnStatus to integer

Resolves: #57304
Change-Id: Id2f91428844365db8c6c26d7af25251d70be31a5
Reviewed-on: https://review.typo3.org/28785
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer