kludge: ignore an error in magit-status-refresh

This error sometimes occures when updating the Emacsmirror.  It
appears to due to this function being called in bare repositories.
This isn't a proper fix and this function should not be called in the
mentioned context anyway.