refactor(change_detection): remove unnecessary conditional expression

`prev` is guaranteed to not be null here, the method would throw noSuchMethod if it were.