check for tape status before retrieval

slk retrieve does not give any hint if it fails due to a corrupted tape, e.g., ERRORSTATE. We should check in pyslk.retrieve if the grouping option is True. We can easily check tape status before trying to retrieve.