Check param in sws_getCachedContext().