Fix error when view is not found

The error would never show any proper value cause it used undefined
variable
1.0.10