lua: Do not try to inject globals when they are not present.

Signed-off-by: Tusa Viktor <tusavik@gmail.com>