Revert the fix to invalid handles due to a platform bug Upstream-commit: 9b7840bb8fb6adaf609f507e0da3fcc1bfc947a7 Component: engine