do not try to install custom packages when the list is empty, fix #2163