checks for a null regex match in importPath