Fix a stack trace when module_payloads.rb is run

This fixes a missing check for self.target being nil in the compatible? method