Fix relative path resolution in View.

Relative paths in view file names where handled very poorly before when subdirectories were involved. This was not very important in 2.x but is more important for 3.x as we have Cells and relative paths should work
properly.

Refs #3945
Missing `@throws` tag.