fix logic for sourceref and bookref overrides of flashpaper specification