[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
(cherry picked from commit 04933406156356f53ea1ea5898bcdf24d948dc31)
Reviewed-on: https://review.typo3.org/28786