Fixing empty plugins detection