Since this method (choose_payload) isn't used anymore, datastore['PAYLOAD'] maybe is not set when the module ```exploit``` method is reached.  It happens when the new code for payload automatic selection is used.

This could be a problem because there are several modules using datastore['PAYLOAD'] to make decisions. Not sure if it has been taken into account. Just pointing.