Update UUID pattern to accept the 'nil' UUID.

Fixes #4133