Fixed an issue where getting a position on an empty path caused a debug breakpoint to trigger. This has been replaced with a proper exception.