magit-save-buffers-predicate-tree-only: bugfix

This function might end up being called outside a repository (because it
is used carelessly, see next branch for a better approach) so we have to
make sure it does not try anything stupid in that case.  Fixes #1499.
magit-process-finish: bind message search correctly

Limit the search for the error message to the section of the current
section, as intended.  Fixes #1498.
magit-delete-branch: do not create master branch

Fixes #1501.