Remove incorrect method call. Fixes #17048. !strict due to strict mode