Handling for sequences that contain a null value. Fixes #1