3.0 - Improve cell/element error handling

This fixes the problems described in #3664. I've also converted missing element errors into exceptions, and cleaned up some dead code.
I agree that showing error messages with paths in prod mode is terrible, I'm glad you caught that mistake. I'll convert the exception to an error and document the oddity.