fixing bug #5046
Since JCR is used, API no more supports files attached to 'nothing'