Some minor changes.

Changes invalid resource id from -1 to 0, according to specifications.

Correcting capitalization in new warning string.