[BUGFIX] Prevent overwriting DataStructure unless template exists
[TASK] Adjust tests to new possible NULL return
Merge pull request #255 from NamelessCoder/greedy

[BUGFIX] Prevent overwriting DataStructure unless template exists