Fixed get_postrelated_by for non post objects