Allow Status::hasMessage to work with Message objects.

Change-Id: I52a468bc33f6c25630665ee8f987a25dc87659ee
Merge "Allow Status::hasMessage to work with Message objects."