fixes #3133 - fix security group filtering when no groups need filtering