Extract `safen' method (=>T -> Option[T], catching exceptions and nulls)