Fix rack associations when resource_class is deleted

Closes-Bug: #1241349
Change-Id: Id7d9cc81eac180c4f21880cf4fed7646b1db26ea
Merge "Fix rack associations when resource_class is deleted"