[fix] Clear limit and offset for all JDatabaseQuery objects. Fixes #4485