Fix NullPointerException in Autosize introduced via #64981 Only happened when alignment is set Add a test reproducing the problem Also verify auto-size on SXSSF