Added null checks when processing JSON in AsyncTasks