Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler filters out nonexistent class 'form-element'.