miq_dynatree - make checkboxes work even when cfme_no_click
miq_dynatree - make checkboxes work even when cfme_no_click

This fixes a bug introduced in #9943, where a tree with cfme_no_click would never do anything on click.

Probably the only tree affected is `protect_tree` (`Policy > Manage Policies` on a VM), without this, it's impossible to check a checkbox there.

In the original code, `onClick: function...` was created twice and this case is the one where both were created, so the second one would override the first. Changing the logic to fit that behaviour.

billfitzgerald0120/manageiq,fbladilo/manageiq,ilackarms/manageiq,kbrock/manageiq,jntullo/manageiq,borod108/manageiq,ManageIQ/manageiq,billfitzgerald0120/manageiq,hstastna/manageiq,andyvesel/manageiq,juliancheal/manageiq,maas-ufcg/manageiq,andyvesel/manageiq,mzazrivec/manageiq,lpichler/manageiq,d-m-u/manageiq,chessbyte/manageiq,jrafanie/manageiq,ailisp/manageiq,pkomanek/manageiq,hstastna/manageiq,durandom/manageiq,mfeifer/manageiq,tzumainn/manageiq,lpichler/manageiq,lpichler/manageiq,juliancheal/manageiq,jvlcek/manageiq,ilackarms/manageiq,romanblanco/manageiq,yaacov/manageiq,lpichler/manageiq,KevinLoiseau/manageiq,romaintb/manageiq,d-m-u/manageiq,jrafanie/manageiq,skateman/manageiq,billfitzgerald0120/manageiq,maas-ufcg/manageiq,KevinLoiseau/manageiq,kbrock/manageiq,israel-hdez/manageiq,andyvesel/manageiq,branic/manageiq,yaacov/manageiq,durandom/manageiq,KevinLoiseau/manageiq,mfeifer/manageiq,juliancheal/manageiq,agrare/manageiq,mkanoor/manageiq,borod108/manageiq,pkomanek/manageiq,matobet/manageiq,ManageIQ/manageiq,matobet/manageiq,chessbyte/manageiq,mzazrivec/manageiq,yaacov/manageiq,fbladilo/manageiq,mresti/manageiq,tzumainn/manageiq,gmcculloug/manageiq,mzazrivec/manageiq,chessbyte/manageiq,tinaafitz/manageiq,d-m-u/manageiq,gerikis/manageiq,josejulio/manageiq,KevinLoiseau/manageiq,israel-hdez/manageiq,jameswnl/manageiq,gerikis/manageiq,aufi/manageiq,pkomanek/manageiq,romaintb/manageiq,maas-ufcg/manageiq,syncrou/manageiq,NaNi-Z/manageiq,branic/manageiq,maas-ufcg/manageiq,ailisp/manageiq,kbrock/manageiq,syncrou/manageiq,djberg96/manageiq,romanblanco/manageiq,d-m-u/manageiq,andyvesel/manageiq,djberg96/manageiq,NaNi-Z/manageiq,fbladilo/manageiq,jvlcek/manageiq,tzumainn/manageiq,mfeifer/manageiq,KevinLoiseau/manageiq,aufi/manageiq,ilackarms/manageiq,israel-hdez/manageiq,gerikis/manageiq,jvlcek/manageiq,gmcculloug/manageiq,juliancheal/manageiq,ManageIQ/manageiq,aufi/manageiq,maas-ufcg/manageiq,mfeifer/manageiq,skateman/manageiq,josejulio/manageiq,mkanoor/manageiq,mzazrivec/manageiq,romaintb/manageiq,ailisp/manageiq,yaacov/manageiq,romaintb/manageiq,jntullo/manageiq,jrafanie/manageiq,gerikis/manageiq,jntullo/manageiq,romanblanco/manageiq,skateman/manageiq,NickLaMuro/manageiq,jvlcek/manageiq,hstastna/manageiq,hstastna/manageiq,branic/manageiq,billfitzgerald0120/manageiq,djberg96/manageiq,djberg96/manageiq,syncrou/manageiq,ailisp/manageiq,ilackarms/manageiq,romaintb/manageiq,josejulio/manageiq,jrafanie/manageiq,matobet/manageiq,kbrock/manageiq,KevinLoiseau/manageiq,mresti/manageiq,jameswnl/manageiq,pkomanek/manageiq,borod108/manageiq,gmcculloug/manageiq,jameswnl/manageiq,skateman/manageiq,romanblanco/manageiq,ManageIQ/manageiq,NickLaMuro/manageiq,josejulio/manageiq,agrare/manageiq,tinaafitz/manageiq,durandom/manageiq,NickLaMuro/manageiq,agrare/manageiq,israel-hdez/manageiq,durandom/manageiq,NickLaMuro/manageiq,mkanoor/manageiq,maas-ufcg/manageiq,tinaafitz/manageiq,borod108/manageiq,tzumainn/manageiq,jntullo/manageiq,aufi/manageiq,chessbyte/manageiq,NaNi-Z/manageiq,NaNi-Z/manageiq,matobet/manageiq,mresti/manageiq,agrare/manageiq,tinaafitz/manageiq,jameswnl/manageiq,fbladilo/manageiq,romaintb/manageiq,mresti/manageiq,gmcculloug/manageiq,branic/manageiq,mkanoor/manageiq,syncrou/manageiq