Fixed Template->render() exception handling
Fixed Template->render() exception handling

If the template was found but the layout was not, a notice was
being emitted: "failed to delete buffer. No buffer to delete."

Additionally, within the branch to catch a LogicException, rather than the
existing LogicException instance being re-thrown, a new one was being
instantiated with the message of the original, losing trace information in the
process.

samsonasik/plates,thephpleague/plates,okaprinarjaya/plates,vlakoff/plates,localheinz/plates