Truncated only Mesos IDs that look like UUIDs.

Framework IDs are truncated regardless of their format right now, but
frameworks assign their own IDs without any restrictions. For frameworks
that use IDs that don't look like UUIDs, they end up with just empty
strings as their truncated IDs.

Review: http://reviews.apache.org/r/14635