Fix security groups invocation to detect presence

RM10261
Merge pull request #270 from asadoughi/disable_security_groups

Fix security groups invocation to detect presence