Moving check for bin not existing in db out side of active check
Active will not be set untill bin is in database
Explaining why we check for no metadata
Adding check for no bin
Merge pull request #1038 from remy/fix/1036

Moving check for bin not existing in db out side of active check