Fix bug with checking type of content in content view factory