PATCH render :partial with :object => nil and non nil instance variable

I have added a patch for the following ticket:

http://rails.lighthouseapp.com/projects/8994/tickets/924-render-partial-object-nil-with-instance-variable#ticket-924-1

This fixes the current unexpected behavior when overriding a non nil instance variable with nil when rendering a partial.