Prevent accessing eventually unexisting array

Followup from the discussion that started by this pull request https://github.com/crowbar/barclamp-ceilometer/pull/141
this is now a different solution for the original problem. Tested on my dev setup.