fix harmless exception if value is null