Update drupalgap.js

Adding a generic drupalgap_empty function so we can test for empty in the app.