catch backend errors in 'set' of 'getOrElse' and return generated values when they occur
use toPromise instead of ~writing it again
Merge pull request #4 from Kofia5/set-fallback

catch backend errors in 'set' of 'getOrElse' and return generated values when they occur