fixed a bug where tasks that don't exist across different environments
crash multi_role_injection checks.