title: Firebase retrieves snapshot value as null
body: <p>I use the <code>.once(</code> function in Firebase and am successfully retrieving the snapshot.key NAME of the directory. But this key has also a value.
  When requesting snapshot.val() also gives out null despise it having a value.</p>
  
  <p>The database looks like this:</p>
  
  <pre><code>    stages {
      stage1AVERYLONGHASH : "values i want to get"
      stage2AVERYLONGHASH : "values i want to get"
      }
  </code></pre>
  
  <p>My code</p>
  
  <pre><code>    var ref = "stage1AVERYLONGHASH";
      var branch = firebase.database().ref(ref).once('value').then(function(s){
      console.log(s.key); // GIVES THE CORRECT ANSWER
      console.log(s.val()); //GIVES null ... doesn't give me the "values i want.."
  </code></pre>
  
  <p>Am i doing it completely wrong?
  I'm new to Firebase.
  Please know that the database is structured like this intentionally.
  I restricted read permission on "stages".
  The game works as just requesting a hash from the database as a reference, to get contents.</p>