setBackground(null) on Container has caused layout() to NPE

Maybe we should add javadoc and/or null checks for padding setting.