Robert -- who has been sober since 2003 -- was a good sport about the dig ... making an "on the nose gesture" when the cameras panned to him. He also called out his struggles in his Oscars acceptance speech -- thanking his entertainment lawyer Tom Hansen for "trying to get [him] insured and bailing [him] out of the hoosegow" over the years.