Fixed #865: 500 error on bamboo link creation

Fixes #865 

There was two issues:
* view called `delete_bamboo_dataset` even if there's no dataset attached.
* `delete_bamboo_dataset` wasn't safe for inexistant datasets.