Fix for bug 36007. The list of elements created by the LineLM was incomplete. Thanks to Manuel Mall for signaling the bug and providing testcases.