Skip query template parameters when corresponding java arg is null