Treat invalid uuid as nil

cc @robin850 @rafaelfranca @sgrif

ref #15365