PIG-3060: FLATTEN in nested foreach fails when the input contains an empty bag

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1465702 13f79535-47bb-0310-9956-ffa450edef68
Merge branch 'trunk' of https://github.com/apache/pig into trunk