Protect from undefined values on Phoenix object