Prevent Error when adding dummy data. Fixes #2100.