Fix error from non-statable files in HTML view

fixes #6