make pacemaker_vip_primitive more defensive

Currently we are seeing pacemaker_vip_primitive occasionally generate NoMethodError exceptions like:

    undefined method `[]' for nil:NilClass

Clearly we need more helpful error messages when things go wrong.