remove nil values from options before encoding them as query when getting tumblr posts