Throw a runtime exception if initial state not supplied through misconfiguration or miscoding of the rim.
Improve logging of errors in HypermediaTemplateHelper.templateReplace