Post parent fixes

Some fixes to the post model parent method I discovered whilst writing unit tests.

Trying to get a post parent that isn't part of the current posts collect caused various errors.