Fixed relationship field / post_object field bug where deleted posts would still be returned as an ID value

Signed-off-by: Elliot Condon <e@elliotcondon.com>