fixes #5841 fix Uninitialized string offset if custom variable is an empty string