MDL-37397 Test for a valid select in formautosubmit

Ideally we shouldn't get into this situation, but in cases where the
generated select element is incorrectly configured, we should try and
handle it gracefully with a warning.