Fixes 500 error without the adding a piece of middleware
SDEV-453. Fixed 500 error for BadgePrerequisitesNotFullfilled with middleware.
Merge pull request #9 from abztrakt/SDEV-453

Sdev 453