Ticket #3485: some null pointer checks (did not fix the bug)

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@28033 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e