Prevent switching of tab state when imported trial data is not yet saved

Reviewer: Dan JAo