Fixed runtime error occurs when invalid import statement.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>