commit diff - check if prev_commit is not nil

王权利请求将github/fork/jojosch/fix-2147合并到master

Created by: jojosch

fix for #2147 (closed)

If the commit contains an image and is the first commit (prev_commit is nil) the error occurs.

合并请求报告