Handle libgit exception when calling git_get_notes

Signed-off-by: Sven Strickroth <email@cs-ware.de>