Fixed NullPointerException on metered methods with complex signature.