fixed NPE exception the data tag was not correcly placed in chart/plot,
so parent plot not found. A more meaningful exception is produced.
Authored by: zluspai 2006-06-23
Parent: [r290]
Child: [r292]