Fixed release bug when released element is not valid

Also did some refactoring, added exists method to Android bootstrap to go round Android implicit wait.