This feature returns zero if and only if the focus of the given rule
application exists, is not top-level and the symbol immediately above the
focus is badSymbol. Optionally, one can also specify that
zero should only be returned if the symbol immediately above the
focus is badSymbol and the focus has a certain subterm index.
TODO: eliminate this class and use term features instead