Do not print error message when in minibuffer

This is needed to use SP in minibuffer.