Fix ClassCastException retrieving edit mode (RO/RW) when starting
PersonActivity