UP-4206 check for null preference values
Merge pull request #403 from acolebourne/UP-4206

UP-4206  avoid NPE on null portlet preferences in layout export