Theme error for missing custom settings in recommendations partial

I’ve been using custom settings in a partials/recommendations.hbs file. But I am constantly seeing the following error message.

Is there a bug with the theme engine not recognising custom settings in custom recommendations partial files?