Fix bug affecting unspecified year in searches