Added preCheckTarget hook

See http://trac.zentyal.org/ticket/6367