Avoid nil class exceptions in getting lvm state