CSPACE-5564: Fixed NPE in code that is looking for static resources.