Fix NPE during gear delete
Merge pull request #114 from pmorie/bug

Fix NPE during gear delete