Avoid nil dereference at 404 page
Use Engine.now instead of Time.now.to_i