Deal properly with null permissions