Bug fixed with color equal to nil.

Now it does not crash with and empthy color passed to its methods.