Sanity checks of the delegation id (should fix EGI RT #5331)