Fix segfaults in setDI() and setDefaults()
Added test case for #744
Merge pull request #744 from sjinks/issue-744

[BUG] [CRASH] Segmentation Fault in Phalcon\Tag::setDI() and setDefaults()