Bugfix: crash when using non-consecutive extruders. #1808