Fixed segfault with incomplete import statements