Elm layout: Fix segfault in some cases.
Elm layout: Fix segfault in some cases.

Apparently this fixes stuff for Daniel Zaoui with some more complicated cases.

SVN revision: 76000

rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,tasn/elementary