commit diff - check if prev_commit is not nil
Created by: jojosch
fix for #2147
If the commit contains an image and is the first commit (prev_commit is nil) the error occurs.
Created by: jojosch
fix for #2147
If the commit contains an image and is the first commit (prev_commit is nil) the error occurs.