Remove unneeded code
Check if item is set before access
CSS tweaks, refs #5201