Merge pull request #17 from ndeloof/master

only save jobs that were actually updated
prevent NPE