Omit changes that aren't in the DB from sourcestamps

Fixes #2554.