TVPJSFRMWK-1454 - Refactored duplication to make class simpler. Brought setChannelByName onError API into line with setChannel onError API