Fix completion of objects with "prototype"

Broken by da899ce.