Workaround for buggy Object.keys behaviour in phantomjs, proper implementation of module.skipIf