fix web ui fatal errors

Fixes #611 #614 #613 
Hmm, since the end of August 2012 as far as I can tell, so I guess there's a small window.