Wui.js $.each

protected $.each from being passed an undefined/null value which will
cause errors from jQuery