Fixed graph loading error.

Fixed start and goal nodes check in GraphProblem __init__.