It is backwards compatible when combined with the behavior in the rest of this method. This preserves behavior in the case where someone had passed a raw id. If it is not found by raw id, the result will be null and the code will move on to attempting to use it as a selector, which would succeed.