Make `_.isElement` more robust. [closes #427]