Fixed issue #9415: Invalid url for image broke Print to PDF with debug 2