boot: fix check for lava_mac
The lava_mac key can be there but with no value, in which case it will be None and will cause the regex match to crash because the input is neither str or bytes.
The lava_mac key can be there but with no value, in which case it will be None and will cause the regex match to crash because the input is neither str or bytes.