I think this should return nil, instead of a string, in the case that there are no pending messages.