hyperv: handle license_key=nil

(cherry picked from commit 4cbe02053d4b2156ff01e49bb673cb7e5cf966f2)