Fix 25374.  Skip empty alignments and print warning message.
Merge branch 'mainline'