Fixed the error handling for actions on not found elements

Refs https://github.com/Behat/Mink/issues/473 and https://github.com/Behat/Mink/pull/505