Fixes #3523: only allow nodes with valid UUID