fixing advanced search year ranges and null values searches