Flaviu Cernescu did the death-defying stunt while juggling three balls as the rail swayed under his feet