Make the condition on migrate_db a bit safer for using in var_prompt
Merge pull request #169 from edx/jbau/safer_migrate_db

Make the condition on migrate_db a bit safer for using in var_prompt