fixes problems with initialization of Razor components used in
Grape API