Fix for bug in messaging portlet