Fixed a bug with Min, Max calls failing when a table is empty.