Fix bug with eclipse compiler where we were passing an originating element array with a null value when creating a template resource