Look out for invalid RelatedTask refs (can happen during an RBAC dry-run).
Look out for invalid RelatedTask refs (can happen during an RBAC dry-run).

Signed-off-by: Konstantina Chremmou <a7d1f757a659045fb6db8c1e3849a1c8ad00b97a@citrix.com>

kc284/xenadmin,kc284/xenadmin,xenserver/xenadmin,xenserver/xenadmin,xenserver/xenadmin,kc284/xenadmin,kc284/xenadmin,kc284/xenadmin