use mFileToStoreBitmap if bitmap is null
test undo/redo in RectangleTest
Merge pull request #168 from Catrobat/i166_rect_lost

I166 rect lost

Implementation: @schmidiM [MS]
Acceptance: @galstc05 [SG]