Fix NullPointerExceptions when the post could not be found.