Fixed a crashing bug related to line opening calculation with a null mobj, and fixed a bug which created cyclical linked lists in the touching_thing lists.

git-svn-id: http://mancubus.net/svn/hosted/eternity/branches/portal-branch@2739 86ba831e-150c-0410-ab35-e06eaae15ed9