Add some bounds checking to the HDMI port number. bugzid: 508