Get Path Length issue when used in blueprints other than Pawn or AIController

When I try to use Get Path Length blueprint node with my custom behavior tree decorator blueprint, I get this ensure exception thrown:

LogOutputDevice: Error: Ensure condition failed: AsAIController [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/AIModule/Private/Navigation/NavFilter_AIControllerDefault.cpp] [Line: 18]

Is this desired behavior or a bug, since the node is static and is available inside my decorator blueprint with context sensitive option enabled?

The workaround is to wrap Get Path Length node inside my pawn’s blueprint function and then call the wrapper function from within the decorator instead.

I’m guessing that Get Path Length node’s implicit world context object is being cast to Pawn or AIController, and since my decorator is none of them the ensure exception gets thrown.