Fix bug in ActiveRecordBase where referencing null filter parameters