Skip getting partition meta data if partition is invalid.
Skip getting partition meta data if partition is invalid.

This fixes error encountered when some flash partitions are invalid.

Microsemi/switchtec-user,Microsemi/switchtec-user