Still…if it is intentional, then when the bag slides up, you should not be able to close the cover until you slide it back down in place. Many people like to open the bag compartment just to check to see if the bag needs changing. They do not notice that the bag has slid out of the proper position.
If the design causes two problems to happen - either the bag collar is not seated properly or it’s too difficult to pull out, then the whole bag holder design needs to be rethought and overhauled so that the user can easily remove the bag and so that the cover can not be closed and the motor can not be turned on unless the dust bag is in its proper place.