fixes #3133 - fix security group filtering when no groups need filtering
(cherry picked from commit 68522ec81c0b64df5306165f4e1be95728158600)
fixes #3133 - fix security group filtering when no groups need filtering
(cherry picked from commit 68522ec81c0b64df5306165f4e1be95728158600)