Fixed bug with inline JS headincludes not working for detail contents.
Fixed bug with inline JS headincludes not working for detail contents.

ggiudetti/opencms-core,ggiudetti/opencms-core,ggiudetti/opencms-core,gallardo/opencms-core,gallardo/opencms-core,ggiudetti/opencms-core,gallardo/opencms-core,alkacon/opencms-core,gallardo/opencms-core,alkacon/opencms-core,alkacon/opencms-core,alkacon/opencms-core