Fix out-of-bound vector element access in map::trans.

Added a proper check when looking if a vehicle's opaque door is open.