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>
Merge pull request #618 from sigma-star/master

Make config.bowerMapping optional