Add one more judgement for modulelist specified but empty.