Add onAfterBuildQuery event to getListQuery()