bug fix on get view when there's a ``null`` hostdata