Fix check for max posts.
Merge pull request #2203 from wordpress-mobile/issues/2192-crash-max-posts

Fix check for max posts.