fix(core): NPE on error handler source sorting