I think the backs detect the presence of film because the little nubs that hold the spools are both pressed-in slightly. I haven't tested that by putting a couple empty spools in there though.

However, I think your problem is that the back-closed detection is failing. The counter only winds on when the back is closed and you can crank it all day to no effect while open.