A better check for the existence of matlabinput element.

It turns out that `bool(xml.find('element'))` will return false if the element is empty. In this case, we care only whether the element exists.

@nedbat