fix rake task join_table:update doctor#hospital nil issue