Solve it by storing data correctly & responsibly. If I find that a list I gather dynamically can return a null value I have to script for that. If I am storing values that contain a period, I know not to use $chr(46) for a delimiter.
I often use comma-separated strings for storing lists (like: channel passwords and stuff), so something they might be null. I just never thought about what happens when I want to work around that.