Fix crash on crewless craft inventory click

Replace crash with an error message.