Judge was warned not to free violent firebug before he allegedly set woman ablaze on train