Handled case in which the `limit` parameter in the latestPosts
publication is a string and not a number.