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
Merge pull request #142 from maurizi/fix-app-crash-date-fields

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