Fix bug with setting RangeController#selection to null/undefined.
Merge pull request #1367 from asolove/range-set-empty-selection

Fix bug with setting RangeController#selection to null/undefined.