Prevent Repository#dicover_default_branch exception if master does not exist

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>