Prevent accidentally overriding the `error` function in the `commonobj` messageHandler in api.js (issue 7232)
Prevent accidentally overriding the `error` function in the `commonobj` messageHandler in api.js (issue 7232)

This naming issue has been present since PR 3529, but at least I cannot find any issues/bugs that seem to have been caused by it, which is good.

The patch also removes an unnecessary `else` branch, since an already existing `break` means that it's redundant.

Fixes 7232.

timvandermeij/pdf.js,jazzy-em/pdf.js,xavier114fch/pdf.js,MASmedios/pdf.js,tinderboxhq/pdf.js,WhitesteinTechnologies/wt-vaadin-pdf.js,MASmedios/pdf.js,Shoobx/pdf.js,joelkuiper/pdf.js,MultivitaminLLC/pdf.js,dsprenkels/pdf.js,Snuffleupagus/pdf.js,anoopelias/pdf.js,datalanche/pdf.js,mukulmishra18/pdf.js,caremerge/pdf.js,nawawi/pdf.js,brendandahl/pdf.js,MASmedios/pdf.js,showpad/mozilla-pdf.js,MASmedios/pdf.js,nawawi/pdf.js,mozilla/pdf.js,joelkuiper/pdf.js,macroplant/pdf.js,a0preetham/pdf.js,mainegreen/pdf.js,mozilla/pdf.js,Rob--W/pdf.js,adlerweb/pdf.js-Touch,mysterlune/pdf.js,websirnik/pdf.js,jasonjensen/pdf.js,caremerge/pdf.js,tinderboxhq/pdf.js,macroplant/pdf.js,datalanche/pdf.js,Snuffleupagus/pdf.js,adlerweb/pdf.js-Touch,mozilla/pdf.js,brendandahl/pdf.js,joelkuiper/pdf.js,macroplant/pdf.js,anoopelias/pdf.js,nawawi/pdf.js,nirdoshyadav/pdf.js,timvandermeij/pdf.js,a0preetham/pdf.js,MASmedios/pdf.js,ydfzgyj/pdf.js,Shoobx/pdf.js,1and1/pdf.js,showpad/mozilla-pdf.js,mukulmishra18/pdf.js,joelkuiper/pdf.js,mainegreen/pdf.js,Rob--W/pdf.js,bh213/pdf.js,skalnik/pdf.js,yurydelendik/pdf.js,1and1/pdf.js,bh213/pdf.js,Shoobx/pdf.js,ydfzgyj/pdf.js,joelkuiper/pdf.js,websirnik/pdf.js,yurydelendik/pdf.js,Snuffleupagus/pdf.js,nirdoshyadav/pdf.js,WhitesteinTechnologies/wt-vaadin-pdf.js,jazzy-em/pdf.js,showpad/mozilla-pdf.js,MultivitaminLLC/pdf.js,timvandermeij/pdf.js,xavier114fch/pdf.js,jasonjensen/pdf.js,skalnik/pdf.js,dsprenkels/pdf.js,mysterlune/pdf.js