Catch NPE when running local script.