[release] drop resource attributes that are nil