Ensure that exception prints UUID and not pointer.

Fixes bug 1095648

Change-Id: I3effbc2e93d143ba7a5c3b047c1618f165c1b0b6
Merge "Ensure that exception prints UUID and not pointer."