Can be solved by canceling the itemClicking client event:
function itemClicking(s,e) { if (e.get_item().get_items().get_count() > 0) { e.set_cancel(true); } }