Don't slugify names that don't exist

When getting resource's human_id attribute when the resource name is
None, it will raise "TypeError" while safe decoding the human_id.

Closes-Bug: #1288397
Change-Id: I2618235bdfc788f5313d8833a0b86d8cc74e30d0
Merge "Don't slugify names that don't exist"