Fixed an issue where mock failed on empty prototypes.