[#3614965]Fix crash on removing last item from expanded node in dir tree model.

If no_child_non_expandable is set then children will be NULL.