I would just imagine the skill icon remains on the bar but is unusable. The same occurs if you learn a skill but then lose memory stat (stat debuff or changing items, etc.).

I wouldn't put too much thoughts on that however. It could also be some bug they have or a specific behaviour for their demo build which is likely different from the release game anyway so. Meh!