added safety check in browserService.setItemPlayer to prevent 'Cannot read property 'parent' of undefined' error