Fix a notice.

"trigger_element" is also populated during submit, so we would get
notices about trying to use the undefined "#ajax" index.
Merge pull request #10 from adam-vessey/7.x

Fix a notice.