Added check for context count when printing task time summary

I call Invoke-Psake -docs as a "help" task and I was getting an error at $currentContext = $psake.context.Peek().