null check if value is null before trying to convert into jtoken fixes #210