fix view to pass tests and indent

Updated view for profile page. Now it checks for empty attributes and empty keys.
Also I disabled the view of gentooRetired attribute if it doesn't exist.