Throw an exception if trying to plant a null tree

Not really necessary, but it would have saved me just a few seconds of debugging time. :)