Fix bug in sortByConfig if config.bowerMapping is not set.

This is triggered by running the unit tests.

Signed-off-by: David Gstir <david@sigma-star.at>