Update door status immediately before sending reply

Without this, if the door is in the process of opening or closing, the
wrong value can be sent.