Log unsuccessful temp file creation and return false

Ref https://github.com/owncloud/core/issues/9527#issuecomment-50277438
@th3fallen because of PHP's type guessing cleverness: https://github.com/owncloud/core/pull/8572
Better get into the habit :smile: