0.7.2.3: Fix for NRE when checking resource mass but resource reference is null.