Fixed #19263 - DatabaseError on using empty Page .object_list in __in cl...

fixed and tested on sqlite, pgsql, oracle and mysql