Fixed typos in createResource fail checks

= -> ==