Fix nullptr crash associated with invalid access on `addResourceOrWarnIfNotLoaded`
Since this method is supposed to warn the user, we shouldn't be risking a segfault on invalid function calls to null pointers! BUG:445581
Loading
Since this method is supposed to warn the user, we shouldn't be risking a segfault on invalid function calls to null pointers! BUG:445581
mentioned in commit 4b4f4d42