Bugzilla #41488: Fix for NPE with PNG images for RTF output. Submitted by: Dominic Brügger <bruegger.at.puzzle.ch>