Fix IndexError exception in cursor.execute() when empty tuple passed by default