Bug 1068058 - Update Selection.containsNode according to the spec; r=smaug

Specifically, this makes the first argument non-nullable.