resourceloader: Inverse hasOwn() check to fix require in debug mode