Fixed issue with RenderComponentDirective throwing ClassCastException wh...

...en model variable is not the expected SiteItem.