These are photos of astronomical experiments, made with extra long exposure time. Caption at
http://images.jsc.nasa.gov/images/pao/GT10/10074468.htm
No one said you can't photograph stars when you are in space. All what is said is, that with camera settings to get a normal exposure of a brightly lit scene, you can't get stars on the film. On Apollo 16, they had a special astronomical UV camera with them, see
http://www.hq.nasa.gov/alsj/a16/as16-114-18439.jpg
Images taken with this camera (exposure times around 15 seconds) show stars. See
http://images.jsc.nasa.gov/images/pao/AS16/10075874.htm
or
http://images.jsc.nasa.gov/images/pao/AS16/10075873.htm
Harald