At the moment when you try to view an object that doesn't exist (ticket, milestone) you get PHP errors cause they try to operate on something that doesn't exist.
This should be handled nicer, just display an error saying that the content doesn't exist.