Fix NPE when using liteconfig and one other issue.