Enhance Openstack driver to avoid NPE and add validations