Fix crash when there would be no widgets

If no widgets are in the database, NodeBB would crash because `async.eachSeries` would receive `null`. If there are no widgets in the database, return an empty array.