Moved clean_tags check into _create_or_update_package method.