Reset error string for each element

Use None to mark non-existent dictionary entries.