Fix for pagination outside of table

The original code would only allow a pagination control outside of the
table only if the pagination control was inside another table. Changed
it to allow it to be positioned anywhere while still keeping the same
table check.