added a check if Starling.current is not null before accessing it in Graphics constructor. It's needed only for testing purposes. When writting integration tests for some objects that use Graphic object it always throws an exception because Staring instance is not defined due to the fact that it's mocked. So this check allows to prevent that exception and write tests.