Fix: crash when using switches connected to doors

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6099 3b4a5df2-a311-0410-b5c6-a8a6f20db521