[DF-1408] Fixed crash with creation of sprite from empty path
[DF-1408] Fixed crash with creation of sprite from empty path