Fixed a bug that was causing the editor to crash when creating the first line of code for a sprite.