Ensure badge exists before testing projects#badge

This is relevant for existing projects