refs #6432 should prevent possible TypeError

I was not able to reproduce this issue but also noticed there could
be an issue under circumstances. Need to know the exact steps to
reproduce