Only render view, if ABSPATH is defined

@Chrico like this?