This and the other checkCanvasRect calls should reference "e". Looks like they can just pass "undefined" for the opt_msg argument which precedes the opt_errorRange argument.