Allow posting empty module id

This is to avoid doing a lookup on an empty key, which results in a
server error, and is to follow the "be liberal in what you accept"
principle.