Updated handling of protected properties
Updated mixin() method to handle null objects