Fix exception on empty message