Builds a filter request from a filter. Returns null if the filter does not have at least one applied option.