Prevent NPE on /ex foreach

It still nulls the values but at least it doesn't blow up the server