“Boardwalk Empire” actor Michael Stuhlbarg was randomly attacked with a rock by a homeless man near Central Park on the Upper…