Fix 753.

Thanks @hjd for finding these.

As a bonus: Formatting of AStarContainer (tabs instead of spaces)
Fix possible null pointer dereference
Merge pull request #755 from stefanbeller/fix753

Fix 753.