[task] 'fixed' BT-42

it's actually not a bug, but now it will be check if the resource exists
before it will be replaced, to get the right exception
Merge pull request #151 from dacrome/BT-42

[task] 'fixed' BT-42