@Johan,
Just to clarify: Servoy does popup an error dialog indicating a problem: "Cannot print document" - so that is fine.
It is just that developer console message and log event occurs with the null pointer. For the end user there is no issue - the work flow progresses fine.