Fixed #2919, errors and wrong behaviours on multi-level drilldown.
Utils: Better JS error detection