Make packagelock more resilient to faulty input
Merge pull request #20 from bkkrw/master

Make packagelock more resilient to faulty input