Update lde_core.lua

Simple check to repress an error