fixes bug, when the picture of an article is deleted without the article being deleted as well
makes error handling of last commit more specific and writes to log about it