Fix GHC 7.6 build error

Data.Either.isRight isn't available until base 4.7.