(#2994) - Fix error when given invalid rev