Avoid NPE in toMetadataRecord for jclouds machine