Boot command may attempt to use an index which exceeds the max image type. Check if the value is larger than the max allowed value and return if there is an error. Signed-off-by: James Gutbub <james.gutbub@intel.com>