Fixed warnings from static analyzer. Fixed an exception when view "imageWithSinglePointPath" in iOS demo project.