Fixed infinite loop created when only one post exists
Merge pull request #1 from tannermares/random-post-fix

Infinite loop when only one post exists.