Use provided context when error callback is undefined