Fixed check in __array_finalize__