Followup e0981a3: don't pass undefined to getClassAttrFromAttributes()

Change-Id: I987345cd923d1b128573f5669d4d0dd4e82db1c9