I didn't do much in the past weeks, because my oral exam and an unexpected death in my family had priority.
Despite the still existing bug, I decided to move the code from my routefinding side project to the server and use it to calculate routes for player movement. After fixing some initial problems it runs pretty well.