Updated error handler to not log if referred from log viewer

Signed-off-by: Tom Wright <tom@inflatablecookie.com>