Don't add null changes to history

Issue #1836