Fixing if 'library' key and  object exist.

I had the error when showing the uploader field. Maybe `$field['library']` does not exists and `$data` is null. So I've included some `isset` checks to hide the error.