Fixed error making doors with multiple switches

In custom maze creation , if a door was assigned multiple switches it
would create an error when any switch added after the first became
detached from the door and could not activate the door.