It's not a bug. The situation is due to blank lineup. It was introduced in season 30. Here is the S30 news
(223143.36).
Now, if a manager sets a lineup with three or more blank starter positions, the coach will declare the lineup invalid and make up a new lineup using a fuller roster.