Bug fix to avoid TypeError on nil values
printf-style instrumentation to record performance impact of @resource.load