Fix bug in displose() when sources or deps lists are empty