fix bug

before android 4.4 , `document` has not `contains` method