Fixed NPE on lua scripts with comments only.