improve error checking if env var is not set
improve error checking if env var is not set

honeybadger-io/honeybadger-jvm-client-v2,honeybadger-io/honeybadger-java,page1/honeybadger-java,localytics/honeybadger-java,localytics/honeybadger-java