Update ResourceManager.h

fixed nullptr reference...