Merge "Add null checks for attribute getters in View."