Fix fatal in 5.6 when no crypto method assigned