Difficulties in the determination of the gluon distribution function from electroproduction of charmed quarks