Issue that is found out by @prattpratt was fixed

See comments here: https://github.com/appium/java-client/commit/c91210040780d96b55af9723a94c7538744c7768#commitcomment-7202750