[Branch ~dhis2-devs-core/dhis2/trunk] Rev 37: Fixed bug leading to nullpointerexception in PDF export.