I am sorry for not finding that bug report, I was bad at searching. After creating MC-257695 I found out that this has already been reported under MC-251542 but my bug report hasn't been resolved as a duplicate of it.