Prevent Ruby error if input to Q4 is nil

This fixes nil being passed to this Q through the API and it then erroring.