elevator: Fix open doors handling on lowest/highest floor.