Add forgotten case to likelihood functions

Code 25 was not filtered out, leading to cryptic crashes

(cherry picked from commit ca6803b5310df303b2b754193f8cc31e836bf89b)