Tolerate bad input to views hook.