Fix nullpointer exception when BAMFileSpan is null