fix error handling in get_note

The code to copy the metadata from a commit note in order to apply it to the file system was only reached, if there was no such commit note.

Changed the program logic so, that metadata is set after successfull extraction from the commit note.