Fix error when a source has no labels

Turn a nil object into [] before playing with it.
Merge pull request #42 from rakoo/fix-no-labels

Fix error when a source has no labels