[layouts] Fix NPE when restoring ListLayoutManager state

Fixes #145