--our server returning 500 to commcare..Added dict get method to see if
key exists before accessing