Removed css3pie. Not necessary for now, and wasn't loaded properly from the theme.
Added a couple of isset checks to avoid PHP notices.