I think this is more a question of how catch and report errors (including those happening when ajax is used); This one in particular is not an error an end user would see, no?