Fixed creating multiple history entries, resolves Emdek/otter#338

This commit fixes Emdek/otter#338 in a more proper way (not creating a history entry, if it was already added).