Fixed crash when zero predictions are returned.