Catch null pointer exception as another failure to connect to database indication.