fix web ui fatal errors

Fixes #611 #614 #613 
I think the ID wasn't being auto-generated though, until recently, and so the web UI was only half working for checks on entities created earlier.