crash linux again

there is a problem if no object is selected when you do alt-A
as I forgot to test for an empty list of selected objects.
There is a call to getType() with None as an argument.

I’ll fix this, or you can add the test on yourself…