Resolves #11098. In f12687e9, a new parameter was put in the wrong order in a call to draw_layer(). This caused a crash in single layer PDF saves.