it seems that the fragment root resource can be null even for a project
module. So let's check it.