Manage NPE on ST_EXTENT when used on empty table