Fixed NPE on File / Import Module
(cherry picked from commit 38a8f07)