fix(handlers): do not allow final import without a preceding pre import
Related to &7528 (closed). Found in https://gitlab.com/gitlab-org/gitlab/-/issues/355542#note_871169085.
Edited by João Pereira
Related to &7528 (closed). Found in https://gitlab.com/gitlab-org/gitlab/-/issues/355542#note_871169085.