Fix JavaScript problems on channels where you are not allowed to upload photos.
Fix JavaScript problems on channels where you are not allowed to upload photos.

Add some try...catch blocks around JavaScript that throws errors.
This commit should fix the current problems that were introduced by an
earlier commit.

redmatrix/hubzilla,zzottel/hubzilla,HaakonME/hubzilla,encyclomundi/hubzilla,redmatrix/redmatrix,mrjive/hubzilla,dawnbreak/redmatrix,encyclomundi/hubzilla,zotlabs/hubzilla,mrjive/hubzilla,git-marijus/hubzilla,dawnbreak/redmatrix,kenrestivo/hubzilla,sasiflo/hubzilla,mjfriaza/hubzilla,redmatrix/redmatrix,anaqreon/hubzilla,anaqreon/redmatrix,git-marijus/hubzilla,friendica/red,redmatrix/redmatrix,solstag/redmatrix,anaqreon/hubzilla,dawnbreak/hubzilla,redmatrix/redmatrix,wave72/hubzilla-dev,dawnbreak/redmatrix,mjfriaza/hubzilla,git-marijus/hubzilla,solstag/redmatrix,mrjive/hubzilla,encyclomundi/hubzilla,beardyunixer/redmatrix,sasiflo/hubzilla,zzottel/hubzilla,dawnbreak/hubzilla,beardyunixer/federated-global-directory,dawnbreak/hubzilla,habeascodice/redmatrix,HaakonME/hubzilla,mrjive/hubzilla,wave72/hubzilla-dev,habeascodice/redmatrix,HaakonME/redmatrix,dawnbreak/redmatrix,zotlabs/hubzilla,redmatrix/redmatrix,mjfriaza/hubzilla,HaakonME/redmatrix,wave72/hubzilla-dev,zotlabs/hubzilla,git-marijus/hubzilla,wave72/hubzilla-dev,sasiflo/hubzilla,beardyunixer/federated-global-directory,wave72/hubzilla-dev,encyclomundi/hubzilla,solstag/redmatrix,anaqreon/redmatrix,HaakonME/redmatrix,mrjive/hubzilla,solstag/redmatrix,dawnbreak/hubzilla,phellmes/hubzilla,phellmes/hubzilla,zzottel/hubzilla,friendica/red,unary/redmatrix,habeascodice/redmatrix,dawnbreak/redmatrix,encyclomundi/hubzilla,HaakonME/hubzilla,sasiflo/hubzilla,HaakonME/hubzilla,solstag/redmatrix,anaqreon/redmatrix,phellmes/hubzilla,phellmes/hubzilla,unary/redmatrix,git-marijus/hubzilla,beardyunixer/federated-global-directory,anaqreon/redmatrix,zzottel/hubzilla,encyclomundi/hubzilla,beardyunixer/redmatrix,zotlabs/hubzilla,unary/redmatrix,beardyunixer/federated-global-directory,beardyunixer/redmatrix,redmatrix/redmatrix,HaakonME/redmatrix,HaakonME/redmatrix,encyclomundi/hubzilla,unary/redmatrix,kenrestivo/hubzilla,zzottel/hubzilla,friendica/red,redmatrix/hubzilla,redmatrix/hubzilla,anaqreon/redmatrix,git-marijus/hubzilla,beardyunixer/federated-global-directory,HaakonME/hubzilla,friendica/red,dawnbreak/hubzilla,kenrestivo/hubzilla,friendica/red,zotlabs/hubzilla,redmatrix/hubzilla,mjfriaza/hubzilla,HaakonME/redmatrix,HaakonME/hubzilla,anaqreon/hubzilla,zotlabs/hubzilla,mrjive/hubzilla,unary/redmatrix,redmatrix/hubzilla,solstag/redmatrix,beardyunixer/federated-global-directory,wave72/hubzilla-dev,habeascodice/redmatrix,HaakonME/redmatrix,anaqreon/redmatrix,redmatrix/hubzilla,beardyunixer/federated-global-directory,unary/redmatrix,anaqreon/hubzilla,habeascodice/redmatrix,anaqreon/hubzilla,kenrestivo/hubzilla,redmatrix/redmatrix,HaakonME/hubzilla,unary/redmatrix,wave72/hubzilla-dev,mjfriaza/hubzilla,dawnbreak/redmatrix,kenrestivo/hubzilla,phellmes/hubzilla,beardyunixer/redmatrix,sasiflo/hubzilla,mjfriaza/hubzilla,dawnbreak/redmatrix,mjfriaza/hubzilla,phellmes/hubzilla,kenrestivo/hubzilla,zotlabs/hubzilla,habeascodice/redmatrix,solstag/redmatrix,kenrestivo/hubzilla,habeascodice/redmatrix,anaqreon/redmatrix,beardyunixer/redmatrix,zzottel/hubzilla,friendica/red,phellmes/hubzilla,friendica/red,beardyunixer/redmatrix,git-marijus/hubzilla,beardyunixer/redmatrix,zzottel/hubzilla,anaqreon/hubzilla,dawnbreak/hubzilla,sasiflo/hubzilla