improved compatibility with different versions of novaclient

fixes https://github.com/saltstack/salt/issues/16137