Issue#132

Added a check to prevent crash. But don't know how to reproduce it properly. Even if registered SKUs are removed, everything is restored.