cylc runtime inheritance: catch `inherit = None`

Tasks or families that have:

`inherit = None`

cause a traceback in the validation due to an index error. This catches the error and gives a useful message.

@hjoliver, please review.