isEnabled check for elevator write

Prevents null pointer exception