Homer's X-Ray at the hospital shows details of his skull beneath the bucket jammed on his head, but X-Rays would not penetrate a metal bucket.
When Homer and the nerds try to prank the Dean with the super glue in the bucket, Homer is wearing a black beanie. When the bucket is finally removed there is no hat. On top of that, the bucket would likely not have stuck to his head if he had a hat on.