Fixed errors in Marketplace

Solved `undefined index[...]` and `invalid argument supplied[...]`
errors in Marketplace.
Merge pull request #2 from Kuzirashi/master

Fixed errors in Marketplace