Change the checking for missing pictures to check only active reference picture, not all pictures in the RPS