Fix "Fragment cache can't modify frozen object rails 3"

I don't think my fix needs any comments. It may not calculate elapsed time correctly for some cases but at least it doesn't crash a whole app.