Fixed runtime error

Fixed: OhShi: Lua error (runtime) - ohshi/helper_functions.lua:62: attempt to index field '?' (a nil value)
Merge pull request #1099 from Skyrant/patch-4

Fixed runtime error