Fix: new-cap error that throws on non-string member (fixes #1056)