Reporting Portlet: Fix null pointer exception