gracefully handle lack of terms in context processor