Suppress error messages in case there's no `master` branch.

Fixes #533.