Add try except to is_admin check. Fix #645

This is just for whether or not we show a link to the error logs on the error page, so I don't think  that's needed. Frankly I don't think this entire thing is needed, but that's a separate discussion.