Fixed bug when get-tast-allow is false value in Ad Hoc build.