nearby.js: Promise fail(), not error()

This always gets me. Make sure we bind the function correctly so it
runs on an error

Change-Id: I600446357db49042362488239b2511a13d7bb477
Merge "nearby.js: Promise fail(), not error()"