added check for z_index att
Merge pull request #17 from Beeblerox/Ref-missing-z_index-check

added check for z_index att