CLOUDSTACK-5329: fix NPE in storage migration for zone-wide primary storage, and also the serization error.