Merge pull request #5584 from JosJuice/boot-tmd-valid Boot: Check TMD validity before reading from TMD