add null check to sequence and quality lengths match