Fixed extraction of permissions (was crashing build because of user None value)