Log unsuccessful temp file creation and return false

Ref https://github.com/owncloud/core/issues/9527#issuecomment-50277438
Why not if($fh)? trivial change but makes code cleaner