Pass allow_empty to remerge() and set it to False for UpdateSubmodules