Fix issue where: hasProtocol "foo" == True

See #129