Make sure profile exists when deleting

I've got an error when profile was not found :)
Merge pull request #35 from daris/patch-1

Make sure profile exists when deleting