This fix is necessary for creating animations in Javascript from raster images with only one frame. For this Opentoonz expects a frame id of -2. A frame id of -1 is an empty frame. The original implementation onyl allows positive numbers.