Fix for NullPointerExceptions in Export Reportlayout