Two theorems on extensions of holomorphic mappings