avoiding NFE when messageParameters is empty. Closes #503