Fixed missing Gson jar reference and nullptr crash.