Yes, this is never supposed to return null, or else it causes errors. I realigned the method to match the logic from the current Flash AS3 implementation.