Characterising the path-independent property of the Girsanov density for degenerated stochastic differential equations