Changed erldb_app to handle undefined