Fix app crash when attempting to edit a tree with no date planted value

Caused by ClassCastException, we were trying to cast to a String before
checking if the value was in fact a JSONObject.NULL value

Fixes #141