For a workaround due to Melanie Paul that does allow addition of an image to a free-space page which has a comma in the page ID or title, see this link.
The trick is to replace each comma by the "HTML entity"
,
Even with this knowledge, it can be hard to type exactly the right thing. Punctuation marks in free page IDs should be avoided for this and other reasons.