MDL-40404 Libraries: Deprecated get_parent_contextid()