Fix empty messages processing.