Weeks after he was hospitalised, Jamie Foxx’s close friend calmed down his co-star when she started “freaking out” over his condition