PIG-2769: a simple logic causes very long compiling time on pig 0.10.0

git-svn-id: https://svn.apache.org/repos/asf/pig/branches/branch-0.11@1464734 13f79535-47bb-0310-9956-ffa450edef68