Added an error message instead of an unsightly crash in the case of an invalid PostID