Fix setup_security_groups nil instance bug.