Fix "undefined method `uuid' for nil:NilClass". closes #3576