Added check to see if object layer exists before attempting to see if the object layer is empty.
Added check to see if object layer exists before attempting to see if the object layer is empty.

konimaru/lamestation-sdk,konimaru/lamestation-sdk,lamestation/lamestation-sdk,lamestation/lamestation-sdk