do not throw an IllegalStateException if last mode is null
otherwise, impossible to use a "marker" activity at the beginning of the first trip
Authored by: thibautd 2014-08-18
Parent: [r29846]
Child: [r29848]