Fix condition to try ext partitions

The extended partition should only be used when no more than half of the
current block is outside of the available image. Currently, the codebase
tests this condition with partition_none_allowed, which can be modified
by various speed features. Instead, the condition should be tested with
has_rows && has_cols.

Change-Id: I2e11730d586b9e746537ed3411afd908e08f7915
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index b5a8b1d..06f6444 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -2990,7 +2990,7 @@
   assert(IMPLIES(!cpi->oxcf.enable_rect_partitions, !do_rectangular_split));
 
   const int ext_partition_allowed =
-      do_rectangular_split && bsize > BLOCK_8X8 && partition_none_allowed;
+      do_rectangular_split && bsize > BLOCK_8X8 && has_rows && has_cols;
 
   // The standard AB partitions are allowed whenever ext-partition-types are
   // allowed