Fix NPE in getFullList() (for empty lists) now used in FlatTypeMapping.

(cherry picked from commit 52393ec8d2746691b18f2799f4785f6dcfbcb6f3)