Fixed memoisation bug

Calling the APIs without specifiying the closed stations list and
specifying an empty array were considered as different calls.