Fix NPE in getFullList() (for empty lists) now used in FlatTypeMapping.
(cherry picked from commit 52393ec)