RF-13228: prevent NPE during resource optimization