Avoid error when currently not on a specific branch.

Fixes #2.