Fix cancel in data in use from deleting

Regression introduced in "Give support to data in use exception for in-place booleans"
Also added opt parameter to restore hidden required by cancel button from in-place
Merge pull request #1205 from Zentyal/ejhernandez/fix-cancel-warn-on-delete

Fix cancel in data in use from deleting