Prevent attempt to localize null or undefined value.

Signed-off-by: Jay Kuri <jayk@ionzero.com>
Make undefined check an actual non-object check.  Add some tests.

Signed-off-by: Jay Kuri <jayk@ionzero.com>
Merge branch 'refs/heads/2014-06-27-LocalizeNullFix'