Fixed null object exception in MiniProfiler code