Made bindings loader more resilient.

Change-Id: I11f32de92f9e150f6789f6cdc9d0c4afdb133dc1
Reviewed-on: http://review.couchbase.org/30889
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>