Fix for a bug in messaging portlet